package org.ktpro.shortlink.project.controller;

import io.micrometer.core.annotation.Timed;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 访问页面不存在控制器
 */
@Controller          //RestController更倾向于返回数据给前端，而Controller适用于视图（页面相关）
public class ShortLinkPageNotFoundController {
    /**
     * 短链接不存在跳转页面
     */
    @Timed(value = "pageNotFound", description = "pageNotFound")
    @RequestMapping("/page/notfound")
    public String notfound() {
        return "notfound";
    }
}
